package com.wugh.fast.kernel.core.conf;

import com.wugh.fast.kernel.core.props.*;
import com.wugh.fast.kernel.core.util.SpringContextHolder;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * 说明:
 *
 * @author wugh
 * @date 2019-01-30 17:31
 */
@Configuration
@EnableConfigurationProperties({FastProperties.class, WebProperties.class, EncryptProperties.class, MapperProperties.class, SecurityProperties.class, OAuth2SecurityProperties.class, SocialSecurityProperties.class})
public class KernelCoreAutoConfiguration {
    @Bean
    public SpringContextHolder getSpringContextHolder() {
        return new SpringContextHolder();
    }
}
